#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include "n2base.h"
#include "x86sNLS.h"

static const char ** cur_strings;

extern const char** x86asm_strings[];

void x86as_init_multilanguage()
{
    int nlsid;
    nlsid = n2base_get_nlsid();
    if (nlsid < N2_LOCALE_MAX)
        cur_strings = x86asm_strings[nlsid];
    else
        cur_strings = x86asm_strings[0];
}

void x86as_disable_nls()
{
    cur_strings = x86asm_strings[0];
}

const char* xsstr(int str_index)
{
    int total;
    total = (int) E_x86asm_strings_Max_StringId;
    if (str_index >= total)
        return "";
    return cur_strings[str_index];
}










